﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title></title>
</head>
<body>
<script type="text/javascript">
    function Class1() {
        this.showTxt = function(txt) {
            alert(txt);
        }

        
    }

    Class1.prototype.showTxt = function(txt) { alert(txt); }

    function Class2() {
        debugger;
        Class1.call(this);
    }

    var c2 = new Class2();

    c2.showTxt("cc");
</script>
</body>
</html>
